package com.lovegu.thrownable;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author 老顾
 * @title: IOExp
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/22 14:45
 */
public class IOExp {
    public static void main(String[] args) {
        try {
            FileInputStream in = new FileInputStream("atguigushk.txt");
            int b;
            b = in.read();
            while (b != -1) {
                System.out.print((char) b);
                b = in.read();
            }
            in.close();
        } catch (IOException e) {
            System.out.println(e);
        } finally {
            System.out.println(" It’s ok!");
        }
    }
}
